﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Itau.SC.EnterpriseLib.Data;
using System.Data;
using System.Data.Common;

namespace EnterpriseLibraryWrapper
{
    public interface IDataAccessWrapper: IDisposable 
    {
        IList<ParameterInWrapper> ParameterIn { get; set; }
        IList<ParameterOutWrapper> ParameterOut { get; set; }
        string Ambiente { get; set; }
        DataSet ExecuteDataSet(string storedProcedureName);
        int ExecuteNonQuery(string storedProcedureName);
        object ExecuteScalar(string storedProcedureName);
        IDataReader ExecuteReader(string storedProcedureName);
        DataSet ExecuteParameterToDataSet(string storedProcedureName);
        void BeginTransaction();
        void CommitTransaction();
        void RollBackTransaction();
        void CloseConnection();
    }
}
